package drg_group.taizhou_2022.MDC;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;

import drg_group.taizhou_2022.Base;
import drg_group.taizhou_2022.MedicalRecord;
import drg_group.taizhou_2022.ADRG.*;

public class MDCF{
    public static String group(MedicalRecord record){
        String[] mdc_zd={"S85.400x001","I70.902","T82.800x410","S75.700x002","Q20.100","I51.701","T13.400","I08.000x009","I40.900","I70.000x009","Q27.303","I72.100","Q24.800x018","I48.100x003","I74.504","I82.301","Q26.302","Q26.800x010","R57.101","Q25.405","S15.000x002","I70.210","I77.600x012","C75.501","I20.000x004","I70.200x062","R57.900","I47.200x001","I51.700x004","I72.402","I45.200","I09.802","T82.800x303","I08.300x003","I13.200x001","I72.300x012","R00.001","I70.000x013","I77.604","I34.200","I45.103","T81.700x403","Q24.800x026","C45.200","I25.902","I77.800x022","I87.103","T82.900x001","T82.501","I20.006","I49.801","I72.000x031","I07.200x001","I97.101","I77.800x010","C49.900x001","S65.501","I73.903","S35.100x003","I72.000x032","Q24.800x012","R00.200","T82.400","I77.112","A39.504+I52.0*","Q24.601","I10.x09","S75.200x001","I31.200x001","I44.700","I49.101","I51.401","I21.200x011","I20.806","I33.000x012","I24.000x010","I25.300x008","I95.800x001","Q25.402","I15.101","I22.800x015","I77.101","I24.001","Q28.900","I49.100x001","I33.001","T82.700","I10.x10","I86.815","I47.200","S35.200x003","I80.300x005","I72.101","R57.800x003","Q22.500","I10.x12","S25.900","I47.111","Q21.202","I74.300x113","I47.200x010","I20.101","I51.900","I24.000x004","Q27.300x009","R57.901","S25.700","T82.002","I27.001","I08.100x004","R55.x00x009","I77.204","D48.100x008","I27.200x002","I25.300x007","S35.300x002","I05.200x001","I09.100x001","I70.213","I10.x04","I71.000x021","I10.x03","I08.200x002","I08.302","R55.x00x005","I77.605","R55.x00x006","I72.400x212","I71.000x012","I45.800x004","I21.200x019","I73.100","I77.803","Q21.105","Q27.800x033","I07.100","I82.803","A54.804+I41.0*","E11.700x023","A39.502+I39.8*","I50.900x018","A52.002+I79.1*","I45.600x005","I74.500x010","I42.600","I70.013","D21.400x004","I21.000x005","I45.900x003","S95.700x001","I82.806","T81.700x105","Q24.507","M34.800x009+I52.8*","T82.800x202","I83.101","Z45.005","I42.100x002","I77.012","T81.700x302","I08.100","S25.001","Q27.306","Q25.400x009","I47.100x005","I73.800x003","Q24.900","E10.700x022","I70.012","I72.400x233","Q23.000","I70.100x002","B33.200x001+I32.1*","I77.806","I70.810","I87.802","S55.200x001","I87.113","I24.900x001","S35.203","I74.303","I27.000x010","Q21.300x003","I71.004","I74.806","Q25.704","I37.800","T82.800x307","I80.800x007","S25.301","I48.301","S25.300x001","I70.200x005","Q24.100","I77.800x008","I27.200x016","I40.800x001","S35.401","I33.011","I33.002","T82.600","T82.800x407","I09.801","T79.100","I08.900","I30.102","S35.200x006","Q23.001","I47.203","S25.500","Q27.817","R94.307","I08.301","I36.801","S35.503","Q27.200x003","I50.900x007","E16.800x102","I70.208","I47.100x013","Q21.205","I74.201","I70.014","S35.700x004","I45.800x002","R00.000","T82.811","T82.000x002","I80.803","I97.000x002","J10.800x003+I41.1*","I70.200x011","I71.900x004","E76.300x002+I52.8*","S35.400x001","Q23.901","R03.001","I49.402","I35.802","Q21.805","D15.102","I71.801","Q22.800x007","I87.000","I74.300x520","I25.800x006","I71.000x013","I51.708","Q22.301","I38.x02","Q24.200","I08.000x005","I72.804","S35.500x003","I08.305","I78.102","I30.100x007","I77.200","T81.700x404","Q24.800x025","I71.200x010","I72.400x223","I07.100x001","S95.100","T80.100","I74.401","I25.300x011","R01.000","Q25.702","Q24.505","Q20.400","I27.201","I77.000x008","T82.903","D18.000x003","I44.500","I82.900x001","J11.801+I41.1*","Q25.705","I95.000","I71.000x003","I08.005","Q22.400","I72.800x111","I08.300x007","I21.104","I31.000x002","I71.001","Q27.800x007","I40.000x006","R00.801","Q21.203","I77.105","I35.100","I50.900x008","T81.700x401","I21.300x003","I25.300x005","I87.100x007","I77.900","I49.301","I71.100","Q22.302","R01.100","R55.x00x012","I72.900x002","I73.800x007","I08.003","Q21.900","I25.800x005","I74.202","I74.502","I74.101","Q27.307","I86.813","I21.103","I22.800x013","T82.807","S75.000x003","I77.600x015","M05.305+I32.8*","I08.303","I22.800x016","I77.106","I42.201","I08.100x002","T81.800x010","I72.400x131","I71.300","I33.000x001","R00.100x001","I20.807","I15.200x001","I72.400x232","E14.500x032+I43.8*","I25.103","I33.005","I36.800x003","I77.300x003","Q21.206","M05.306+I41.8*","R94.300x010","R00.800","Q24.600x002","I97.800x009","S35.202","I23.200x001","I42.803","I74.800x005","I22.800x008","Q26.200x003","I67.200x003","Z45.001","I74.500x002","I10.x02","Q21.800","I71.000x025","I71.800","I49.800x007","R07.101","I82.802","I27.200x003","I23.100x001","R94.303","Q26.000x001","I80.207","I20.802","I72.400x330","I51.302","S75.700x001","T82.800x203","I47.200x006","I86.802","I08.300x006","I51.704","A52.000x001+I52.0*","T79.101","I78.101","I05.000","Q24.800x014","I09.900x002","I82.800x005","I77.800x016","I87.112","I25.402","I42.000x001","M32.104+I43.8*","I50.100","I86.811","I35.804","I72.401","I72.800x103","I27.801","T82.100x014","I08.000x002","I70.900x002","Q20.101","Q23.802","I44.602","I15.200x004","I47.100x001","I72.400x121","Q26.100","A52.008+I32.0*","I07.200","I72.000","I15.000","I70.900x007","I77.111","I21.200x024","I72.001","A52.009+I39.3*","R09.800x082","S85.500","Q27.818","I09.200x001","I87.101","T82.800x101","I82.900x002","S75.900x002","I38.x00x006","I47.110","T86.300x001","I31.300","T81.700x202","I10.x06","Q24.512","D44.601","I30.000","I72.900x003","Q27.800x035","E05.900x004+I43.8*","I10.x00x008","R94.301","I50.900x009","I21.212","I50.900x016","I47.100x004","S35.501","I89.001","R02.x00","I47.200x009","I27.200x013","I46.100x001","I87.104","I33.003","E03.900x004+I43.8*","I50.101","I73.001","S65.100x001","Q24.000x003","Q25.404","I13.000x001","I44.101","S35.302","E05.903+I43.8*","S65.800","T82.100x011","I45.600x007","I27.100","Q20.200","I35.200","J10.802+I41.1*","I74.003","I74.004","I67.203","T81.700x203","I22.000x001","Q82.800x016","I21.402","I70.000x006","Q27.308","I47.200x014","D48.712","I70.112","A52.000x006+I39.1*","I47.201","I97.800x001","I74.500x009","I72.300x023","I95.200","T82.800x404","I06.200","I77.800x006","S65.000x002","Q23.300x002","Q21.800x003","I74.300x420","Q26.500x001","I74.300x112","I70.203","I10.x08","I31.302","T82.503","I33.010","I72.811","I50.900x017","I15.800x003","I71.400x002","I70.200x004","I21.200x003","E83.103","Q22.802","Q24.901","S95.200","Q27.812","B57.202+I41.2*","T70.200x007","Q26.800x005","I74.500x012","I51.200x001","I77.013","I72.303","I48.401","B49.x15","Q27.301","I71.000x004","I80.001","Q21.104","I27.200x004","I72.800x121","I21.901","Q23.401","I21.210","Q25.800x004","R55.x00x011","I71.901","S25.100x002","T82.800x001","I21.204","S55.101","T81.700x003","S45.700x001","A54.805+I32.0*","I72.400x122","I77.600x001","I74.300x430","I82.200x001","E16.800x101","I08.200x001","I21.200x010","S35.000","Q24.807","T82.000","Q25.302","I35.101","I51.801","I34.800x006","I35.807","I46.901","I86.806","I74.800x006","I77.807","I83.902","Q82.800x015","D15.105","I72.400x430","I08.800","I97.804","Q25.700x008","R07.400","Q24.509","I71.206","I72.400x210","I34.100","I25.400","I08.000x006","I08.300x004","I74.800x012","Q27.806","I27.200x021","Q87.809","S85.100x001","I51.900x003","I74.800x004","Q22.102","I33.000x011","I22.100x003","I72.200x003","I80.804","S65.000x001","Q23.200x003","Q25.200","Q28.800x007","Q21.000","T82.001","Q28.900x001","Q27.800x020","R94.308","D18.000x837","I86.805","S26.800x011","I77.014","E74.006+K77.8*","T82.800x008","I42.800x004","I70.002","I83.900x004","I45.501","T82.502","Q23.805","I72.200x001","I77.801","I71.204","Q25.700x012","I51.709","E88.907+I43.1*","I02.000x001","Q20.802","I78.803","T82.800x105","D15.104","I44.102","I15.200x003","S35.200x004","I51.900x001","I95.100","Q26.600","I51.705","I38.x00x007","I77.131","I72.405","B33.201+I41.1*","I08.000x001","I36.100","I51.700x003","Q24.813","I73.800x006","I71.200x011","S65.100x002","I72.400x213","I21.200x014","I08.901","D20.000x002","S25.200x001","D35.600x001","I34.101","I72.200","R93.103","I77.118","I50.104","I74.200x001","I51.001","I82.800x002","Q20.300x002","Q23.200","I97.800x014","Q24.805","Q24.811","I74.805","T82.800x411","I21.206","I47.104","I72.400x220","I44.601","I82.805","I05.200","I87.118","I15.800x002","I44.302","S35.900x001","I33.000x024","I71.000x007","S85.700x001","I74.902","Q24.800x028","I73.800x001","I71.000x026","S45.201","C79.800x819","I97.800x008","I21.200x018","I70.910","I72.400x310","I25.000x001","I72.501","I74.300x212","Q24.503","I77.100x018","I87.805","I10.x01","R93.101","T81.700x201","S26.800x031","I34.800x003","I87.110","I77.802","I51.400x005","I21.302","I45.602","I51.707","I71.000x014","I86.804","I27.200x012","I49.404","I37.200","E11.502+I79.2*","I80.203","I72.305","I77.005","I47.101","I82.100x001","Q24.808","I72.400x230","I77.601","S75.000","I34.000x001","Q20.200x002","S26.811","S26.000x002","Q24.502","R00.800x003","S35.102","I72.301","I77.113","T82.504","I77.115","T81.700x304","Q25.700x007","E11.500x021+I79.2*","I71.000x028","I34.102","I97.800x006","I35.801","I36.000","I34.202","Q26.800x001","Q26.200x005","Q26.800x006","S35.800x001","I73.800x008","Q87.203","S35.300x001","I80.300x006","S95.800","R55.x00x010","I87.100x003","I10.x00x002","I09.200x003","I42.905","T81.700x102","Q27.811","I82.201","I71.000x002","Q26.800x007","I27.000x007","Q24.800x011","I82.800x009","I97.800x011","I33.004","Q25.401","I71.000x005","I83.001","I72.000x022","I22.800x006","I22.000x002","I74.307","I40.001","I45.600x003","T81.700x301","I86.801","I27.200x009","I33.008","S35.301","I74.200x007","I70.200x063","I28.800x003","Z45.800x006","A52.003+I79.0*","A52.000+I98.0*","I45.400x001","I70.900x003","I45.901","T82.000x001","I21.200x022","I21.200x023","T82.806","S35.800x002","I42.300","Q25.700x011","I71.203","I47.100","T82.800x302","I82.900x003","I77.800x020","T80.000","I74.304","Z03.400","I31.901","Q27.800x037","Q24.800x010","I87.111","I47.102","I50.900x010","B33.200x002+I39.8*","M31.400","T82.800x207","I12.902","I86.800x011","R55.x00x007","S35.500x006","I49.303","T82.100x003","I08.800x003","I08.801","I71.200x014","I72.304","I77.000x014","I37.900","S45.300x001","I15.100x001","I51.703","T82.100x006","Q20.301","R94.300x003","E13.500x241+I79.2*","A18.820+I39.8*","I10.x00x017","I44.300x003","I35.808","I80.302","I87.200x001","I51.404","A18.808+I32.0*","T82.600x001","I74.800x010","I95.101","I97.800x010","I20.000x005","R57.803","I87.117","S55.700x001","I15.800x004","S25.802","Q21.204","I70.804","Q25.900","I08.103","Q24.803","I51.600x003","I05.900x001","I49.800x010","I01.000","I74.300x133","Q21.101","I72.400x320","I72.400x420","Q20.800x003","I45.101","Q24.603","I87.119","M10.004+I43.8*","I71.002","S45.200x002","S35.500x008","I21.205","I08.009","I42.800x005","I21.200x026","D48.711","I34.900","I22.800x001","I77.300x002","I73.902","I51.700x014","I77.800x011","I77.800x018","I77.800x015","I51.304","I47.200x011","R94.305","Q26.200x002","I21.401","Z45.003","B37.600+I39.8*","I49.200x001","I72.300x033","I82.800x004","Q20.900","Q27.800x039","A52.005+I52.0*","I48.200","I70.207","I74.901","I21.200x017","I08.300x002","S85.000","I70.209","M05.302+I43.8*","Q82.812","I71.903","I33.009","R00.100","I82.202","B57.002+I41.2*","I51.700","D44.700","I51.702","S26.801","I70.000x008","I08.300x001","I74.308","I74.402","B26.803+I41.1*","Q25.408","I71.000x011","Q85.900x048","T82.401","I71.600x004","I28.804","S75.100x001","T82.800x208","M32.105+I32.8*","I21.200x020","I77.800x012","I49.800x015","Q23.900x001","D21.300x005","I08.000x007","I73.804","Q27.800x008","S55.900x001","I72.100x005","I15.900","B33.200","S45.701","I33.000x007","I28.802","I74.300x233","I20.801","I42.401","T82.704","S35.402","D15.103","I36.800x002","I08.201","I27.900","I28.803","I42.904","T82.801","I77.100x012","I77.201","I77.100x029","I22.800x003","I15.800x001","S25.501","Q24.508","I77.800x014","I22.000x005","Q20.600","Q27.900","Q20.500x001","I72.400x123","Q28.801","I06.000","I77.600x004","I28.000x002","I74.800x008","R57.801","T82.301","I97.001","I77.500","I42.100","I82.900x004","Q24.511","Q24.800x030","I21.303","I15.102","I25.500","I70.200x065","I86.800x015","I25.403","I72.805","I77.109","Q21.100x001","I97.800x015","S35.200x001","I51.000x001","Q25.703","I83.904","I21.200x025","I72.403","I21.900x001","I72.800x061","Q25.600","D44.703","T82.100x013","I74.500x008","I48.100","I27.000x009","I72.000x011","I47.200x005","Z45.006","I74.300x310","I87.100x008","I77.100x014","I72.300x031","I80.103","I05.000x001","I72.400x410","I47.202","I74.500x013","I40.800x003","T82.800x304","Q24.806","T82.800x306","I20.000","I25.301","I27.202","I71.200x006","I20.002","I51.402","I33.000x008","I71.000x024","I08.800x002","Q26.400","I72.300x013","I77.301","I50.100x006","I77.125","I51.700x009","I08.102","I23.000x001","I82.801","I35.800x003","I77.602","I51.400","Q26.301","T82.101","I27.200x015","M32.109+I39.8*","A18.809+I32.0*","I72.400x030","I77.600x016","I70.217","I49.800x016","Q23.200x004","E13.500x541+I79.2*","I70.110","Q27.809","S65.200","I80.800","Q26.000x002","I42.301","I11.901","S45.000","I45.502","I71.205","I40.000x003","R01.200x003","I72.100x006","I08.008","I24.003","I31.100x001","I44.303","I71.000x016","E11.501+I79.2*","I87.100x009","I72.900","I23.800x001","Q24.815","T86.200x002","I27.200x006","I72.000x013","I21.900","Q24.400","Q22.800x004","I05.800","I83.903","I24.800x007","S25.800x003","I35.000x002","D21.400","Q27.800x042","R68.800x001","I24.800x001","Q24.513","I33.006","I49.800x002","I51.400x006","I20.800x006","I20.800x007","B01.800x001+I41.1*","I50.001","I77.100x004","I72.800x053","Q25.700x006","T82.904","I71.000x029","T82.303","I28.800x008","S25.801","I74.102","I30.900","R57.100","I70.003","I47.105","Q20.302","I50.900","T82.800x106","I82.800x003","I10.x05","Q25.407","I77.603","I20.900","I30.900x001","I74.300x330","I70.000x011","I20.003","I21.200x009","I21.200x016","Q27.800x018","R94.300x007","Z03.500x001","I08.000x008","I71.401","Q21.300x001","I71.003","A01.000x016+I41.0*","I71.000x008","T82.100x012","R00.300","I73.901","I31.800x001","I77.000x011","I86.816","I25.800x011","I27.200x020","I87.900","A52.000x011+I39.0*","I27.900x002","I74.000x003","R57.200","I71.902","A52.006+I39.8*","I72.404","Q20.601","Q21.201","I08.300","S45.301","I87.116","E14.700x022","I22.800x011","I27.000x008","A18.821+I41.0*","I44.201","I33.000x019","S55.100x001","I72.103","I97.800x004","I34.803","I38.x03","I77.000x015","E63.901+I43.2*","I87.801","Q24.800","R94.300x011","T82.800x103","Q21.106","I72.800x101","S26.900","I97.800x005","I97.802","I34.800x005","S75.200","T82.800x009","I33.900","S35.205","E10.400x311+G99.0*","I87.102","I42.701","I23.400x001","I50.906","S35.700x003","I77.800x017","I48.300","I72.400x113","I36.800x004","I30.100x006","I38.x00x005","M31.804","I07.900x001","Q24.504","Q21.100","I74.801","R57.802","I71.202","I77.100x028","I33.000x022","I26.001","I70.004","S35.500x001","N18.505+I68.8*","I22.800x009","D44.702","I50.000x005","Q26.801","I08.002","I97.803","I50.102","I77.107","I22.800x007","I51.800x005","S26.910","I47.204","I73.805","Q24.812","D18.000x822","I48.900x015","T81.700x104","Q26.300","Q21.300x002","I78.900","R55.x00x002","I97.800x002","T82.800x308","I42.801","Q22.800x005","I45.600x004","I72.004","S26.800x083","I70.200x064","I87.201","Q24.501","I21.002","I50.002","Q25.701","I22.100x002","I09.200x004","Z52.700","I25.400x001","R55.x00x001","T82.100x010","C49.300x006","S09.000x001","I72.400x010","I72.812","I74.300x030","T82.800x206","I25.900","I74.802","I70.900x006","I21.400x003","I71.100x003","I24.800x004","I97.800x017","I15.200x002","Q28.200x007","I87.115","S25.101","S45.300x002","T82.900x002","T81.701","I21.213","T82.800x406","I89.100x003","I72.400x132","Z03.501","S26.812","M05.304+I52.8*","I83.200x001","I77.102","I80.303","I21.300x004","I70.102","I44.100","I07.000x001","I25.300","B57.201+I98.1*","S35.200x005","S35.001","I70.001","S75.901","I21.300x008","S85.101","I49.401","I71.000x006","S85.800x001","Q27.100","I74.200x005","I25.600x001","I37.000","T82.800x409","C38.000","E10.700x011","I21.105","E14.700x023","I47.109","I33.000x006","I51.803","S26.000x001","I51.800x004","I08.104","T82.810","I74.001","S26.800x021","I25.104","Q21.802","Q24.510","I74.300x213","I77.126","I72.300x032","I51.802","I80.204","I22.800x004","I73.802","I44.304","I25.800x004","I77.800x002","S65.300","I08.100x005","T82.901","A39.500","I34.000","Q25.300","Q25.400x012","I74.501","I72.400x520","I74.800x007","I71.402","I87.114","T82.100x008","D15.101","I74.503","Q26.901","I72.814","I72.808","Q24.809","I49.800x006","I21.003","T82.800x003","I08.200","I21.300x005","D18.000x005","T82.805","I80.206","I31.000","T81.700x402","I22.100x001","S75.900x001","Q27.400","T81.700x205","S35.901","S75.000x002","I45.500x002","I77.800x021","I72.000x033","S35.903","D44.701","I15.103","S85.300x001","T81.700x002","I24.901","S75.000x004","R55.x00x013","I80.301","I50.000","Q23.804","I74.005","S35.100","I40.000x004","I67.200x004","Q21.400x001","I47.108","I72.002","Q26.800x002","Q25.400x010","Q25.400x013","I21.004","I42.800x001","I10.x00x009","T82.814","Q28.200x008","D86.800x005+I41.8*","R03.100","I24.002","I10.x14","I25.800x002","I35.900","Q26.200x004","T82.800x301","I28.900x001","I50.900x015","A38.x00x002+I41.0*","I77.120","I74.305","I25.300x012","I31.904","I72.813","I49.500","T82.100x009","Q27.800x041","I74.300x131","I70.000x003","I21.106","I70.200x031","I70.912","I49.302","I72.901","I30.101","I49.800x001","I86.807","I06.900","I06.100","I77.203","I40.100","I77.800x024","I89.007","I09.100x002","I70.000x010","I97.100x004","I20.004","T82.800x102","I25.800x009","I21.200x030","D44.700x002","I71.000x023","S35.700x001","I51.800x006","I77.010","I80.101","I05.900","I74.300x223","T82.100x002","I28.800x007","I77.129","Q24.800x017","I25.300x006","Q27.815","I77.127","I35.200x001","I72.800x151","I47.100x014","I74.800x009","I70.911","Q25.500","T81.700x308","I72.300x006","Q23.800x004","I72.600","I51.301","T82.300","R94.300","I08.100x001","I70.219","I23.601","T82.809","I77.103","I51.500x002","I86.800x005","I50.907","I70.000x012","I74.300x122","I72.400x530","T81.700x303","S35.200x007","T86.300x002","I33.000x020","I31.900x010","I31.001","S35.204","I77.117","I13.900x001","D18.010","I35.803","I49.300x002","I77.800x007","I36.200","S26.810","I77.800x019","I50.900x014","R57.000","S85.102","T82.102","T82.800x405","I70.010","Q25.406","Q26.200x001","I08.100x003","I74.800x001","I15.200x005","I80.800x002","I07.800","I25.100x003","S15.700x001","J09.x03+I41.1*","S65.500","I25.800x003","I99.x01","I31.903","S65.401","I10.x00x007","I31.301","I47.200x013","I87.001","I40.000x007","Q21.804","I45.102","I74.300x111","Q22.600","S65.700x001","C75.400","Q87.400","I77.600x013","I36.900","S75.000x005","I82.204","R94.300x012","I21.200x015","I73.803","I70.211","S95.900x001","I78.801","I77.100x027","S55.000x001","I25.901","I40.002","I77.804","D18.000x835","Q26.800x004","I72.400x133","R07.301","I10.x13","A32.802+I39.8*","C38.001","I31.800x003","I72.300x003","T82.003","I37.100","I72.400x112","Q23.801","I70.812","S26.800x082","S35.801","E10.700x023","I50.908","I06.800x001","Q24.300","I77.123","Q26.800x003","I31.101","T81.700x103","I08.004","T82.201","I83.901","I08.101","Q25.800x002","I78.000","C79.800x863","S65.900x001","Q23.803","S25.400","I30.801","I97.800x020","I70.800x006","I71.000x015","I72.000x023","I49.900","I77.600","I70.802","Q27.001","I27.200x017","I48.000","I25.401","Z45.002","I51.500x006","I35.100x003","I10.x00x016","I40.000x005","I50.000x006","I27.200x018","I27.200x019","T82.800x006","I44.000","I77.108","Q27.800x031","I74.200x004","C38.000x004","I42.800x007","I71.007","I27.200x005","I74.807","Q22.801","I72.400x110","Q23.101","I07.900","I80.800x006","I51.303","C79.800x807","I77.100x032","T81.703","D18.000x836","I77.800x009","I70.101","I38.x00x002","I34.801","I80.209","T82.103","I08.000","I20.005","I33.007","I51.700x015","I44.400","I49.300x005","Q23.400","I72.201","I25.302","I42.802","I45.401","I72.800x051","C79.808","T80.000x001","S85.200","I71.101","I70.214","Q20.801","I77.100x015","I95.900","I77.805","I71.006","I72.400x222","I74.500x011","T81.702","I80.100x003","I42.501","E14.500x031+I43.8*","A39.503+I41.0*","I71.201","I21.200x029","I74.300x510","S95.000","I09.900","I51.903","I20.803","I27.200x022","I22.800x010","I45.500x005","I70.201","I72.800x102","A52.007+I41.0*","I87.106","I80.802","I71.100x002","I21.207","Q25.000","Q24.602","I45.900x002","C79.800x830","I45.300","I48.100x002","Q20.500","T82.703","I74.301","I72.005","I80.201","S35.500x004","I25.800x012","I22.900x001","S26.813","Q20.000","T82.100x005","I01.900","R55.x00x003","S25.201","I70.000x007","I80.208","I10.x00x015","I70.200x002","I70.200x061","D18.000x004","I50.105","I02.900x001","I49.805","A39.501+I32.0*","S45.101","I72.800x093","I35.805","S45.800","I47.200x007","I70.200x021","J94.000","I11.002","T82.100x015","T86.200x001","D15.106","Q26.000x004","S45.900x001","I70.218","I08.007","S55.800","I80.104","T82.302","R07.200","Q25.601","I83.905","M05.307+I39.8*","I51.706","Q23.100","Q27.800x034","S65.400","I09.200","C75.500x001","I34.201","I25.300x013","I46.000","I22.800x005","S85.801","I51.901","D44.700x004","I82.302","I70.805","I45.801","I72.300x022","Q25.301","Q22.400x003","I21.200x027","I70.204","Q82.811","B33.200x004+I41.1*","I21.001","I50.900x002","I97.102","I47.200x003","T82.804","Q21.103","I86.814","I82.804","I48.900x004","I23.500x001","S45.001","Q22.200","E85.416+I43.1*","I77.121","I50.103","I87.202","I77.011","T82.800x408","I11.001","I49.802","B57.001+I98.1*","R55.x02","I72.400x130","T82.601","Q24.814","B25.803+I41.1*","Q23.200x002","A54.802+I39.8*","I22.800x017","I01.200","I74.300x132","I80.002","I30.103","T82.800x205","S35.400x002","S85.100x002","I70.206","E10.502+I79.2*","I97.000","T82.800x402","T82.100","I35.000","T82.500x001","I70.800x005","D18.000x001","Q22.900","I28.100","I80.901","I72.806","R93.100x002","I83.102","R96.000x001","I77.006","I72.400x111","I74.310","I51.600x002","I97.800x013","Q24.000x002","I42.800x006","I20.808","I42.001","S35.500x005","I70.900x004","M31.600","I49.002","S35.300x004","I51.700x007","Q24.400x003","T82.500x002","I02.900x003","I08.001","I74.200x006","I35.000x003","I08.006","I72.000x012","Q24.800x027","T82.800x201","I50.900x019","I71.000x027","I47.103","I72.300","I72.400","I30.100","D44.700x003","I08.300x005","I22.000x003","I70.901","I31.300x005","I08.000x003","I47.200x008","I24.000x009","I33.000x004","I49.001","I21.200x021","I22.800x012","I31.900x008","R55.x00x004","Q22.000","I42.800x002","I77.114","I20.001","I34.802","S26.010","I51.502","Q27.808","I23.300x001","I74.300x232","I24.000x003","I74.300x320","I49.400x001","I49.800x005","T82.500x003","I72.100x003","I45.600","I72.006","Q24.506","I42.900","I22.800x018","I25.400x005","I34.001","I50.900x001","I83.000","T82.800x403","I01.100","I77.007","I33.000x021","I80.902","I72.300x021","I77.600x014","R96.001","Q23.300","I40.800x002","I77.202","Q26.902","I74.006","T11.400","I30.100x005","I49.403","Q21.102","R55.x00x008","I71.600x001","Q22.100","I71.005","S35.201","A52.004+I39.1*","I22.800x002","Q24.810","I72.000x321","R00.800x001","I51.100x001","I74.300x220","T81.700x204","I70.111","I48.400","I74.300x410","T81.700x004","Q23.800x008","R94.306","Q20.600x001","R94.304","I80.102","N18.506+I32.8*","S75.100x003","I42.200x002","I31.100","I97.800x016","S35.101","I71.500","I21.208","T82.803","I74.300x210","S35.300x005","T81.700x005","I25.800x010","S85.900x001","I25.300x010","I28.800x005","I25.802","T82.100x007","I09.000","I49.501","I51.900x002","I08.000x010","I08.000x004","I72.800x042","I45.804","A18.818+I79.8*","I74.300x230","I80.202","Q25.100","S35.502","S35.701","Q27.309","I30.100x008","I28.801","Q20.300","I44.200","I70.000x005","I72.800x023","I25.102","I51.700x006","I83.100x001","I30.900x003","I77.104","Q24.804","I97.801","T81.700x405","S75.001","T82.800x305","S75.800","I42.901","S35.500x002","I24.801","I28.000x003","T82.800x104","Q25.303","I22.000x004","Q27.803","A36.802+I41.0*","I71.900x002","I82.300x001","I07.000","I24.100x001","I51.403","I72.100x004","Q26.000x003","R09.800x081","I77.800x013","I49.804","I42.902","I42.500x001","Q21.200","Q26.800x008","I31.900x009","B58.800x001+I41.2*","I48.900x003","I21.211","A52.000x007+I39.1*","T82.800x005","I72.302","I72.900x004","Q24.300x002","I49.800x003","I74.300x222","D18.000x841","I01.800x001","I77.100x031","I36.800x005","I77.100x005","I35.806","T82.808","E74.008+I43.1*","R55.x00x014","S25.000","S35.902","T82.800x004","I47.107","I15.800x006","Q27.200x002","I34.800x002","I82.203","I77.008","S75.100x002","I05.100","I86.800x017","D18.000x840","R57.900x002","R93.102","I45.500x004","S35.300x003","I08.304","I72.003","E85.408","I71.600x005","I47.900","I74.302","I45.000","I47.106","T82.702","I22.800x014","I77.110","Q25.403","C49.402","I25.300x009","T81.700x101","I20.102","I74.002","I71.000x017","D15.100","Q23.800","T82.800x204","I51.501","I45.601","I24.000x005","I74.300x121","I74.300x123","I47.000","T82.800x401","I71.000x022","I70.011","S35.500x007","I38.x01","C38.002","E11.700x022","I08.306","T82.202","Q26.500","I31.902","I97.900","I74.500x007","D48.100x024","I72.100x007"};
        String[] dept_list={};
        if (!(true && Base.contains(mdc_zd,record.zdList[0]))){
            return "";
        }
        
        Base.groupMessages.putMessage(record.Index,"符合MDCF入组条件，匹配规则：主诊断匹配");
        String result;

        result=FB1.group(record);
        if (result.length()>0){
            return result;
        }

        result=FB2.group(record);
        if (result.length()>0){
            return result;
        }

        result=FC1.group(record);
        if (result.length()>0){
            return result;
        }

        result=FD1.group(record);
        if (result.length()>0){
            return result;
        }

        result=FD2.group(record);
        if (result.length()>0){
            return result;
        }

        result=FD3.group(record);
        if (result.length()>0){
            return result;
        }

        result=FE1.group(record);
        if (result.length()>0){
            return result;
        }

        result=FE2.group(record);
        if (result.length()>0){
            return result;
        }

        result=FF2.group(record);
        if (result.length()>0){
            return result;
        }

        result=FF1.group(record);
        if (result.length()>0){
            return result;
        }

        result=FF3.group(record);
        if (result.length()>0){
            return result;
        }

        result=FJ1.group(record);
        if (result.length()>0){
            return result;
        }

        result=FK1.group(record);
        if (result.length()>0){
            return result;
        }

        result=FK2.group(record);
        if (result.length()>0){
            return result;
        }

        result=FK3.group(record);
        if (result.length()>0){
            return result;
        }

        result=FL1.group(record);
        if (result.length()>0){
            return result;
        }

        result=FL2.group(record);
        if (result.length()>0){
            return result;
        }

        result=FL3.group(record);
        if (result.length()>0){
            return result;
        }

        result=FM1.group(record);
        if (result.length()>0){
            return result;
        }

        result=FM2.group(record);
        if (result.length()>0){
            return result;
        }

        result=FM3.group(record);
        if (result.length()>0){
            return result;
        }

        result=FM4.group(record);
        if (result.length()>0){
            return result;
        }

        result=FN1.group(record);
        if (result.length()>0){
            return result;
        }

        result=FN2.group(record);
        if (result.length()>0){
            return result;
        }

        result=FP1.group(record);
        if (result.length()>0){
            return result;
        }

        if (false && record.ssList!=null && record.ssList.length>0  && Base.intersect(Base.SS_VALID,record.ssList)){
            Base.groupMessages.putMessage(record.Index,"符合FQY入组条件，存在有效手术操作："+String.join(",",Base.Intersect(record.ssList,Base.SS_VALID)));
            return "FQY";
        }

        result=FR1.group(record);
        if (result.length()>0){
            return result;
        }

        result=FR2.group(record);
        if (result.length()>0){
            return result;
        }

        result=FR3.group(record);
        if (result.length()>0){
            return result;
        }

        result=FR4.group(record);
        if (result.length()>0){
            return result;
        }

        result=FT1.group(record);
        if (result.length()>0){
            return result;
        }

        result=FT2.group(record);
        if (result.length()>0){
            return result;
        }

        result=FT3.group(record);
        if (result.length()>0){
            return result;
        }

        result=FT4.group(record);
        if (result.length()>0){
            return result;
        }

        result=FU1.group(record);
        if (result.length()>0){
            return result;
        }

        result=FU2.group(record);
        if (result.length()>0){
            return result;
        }

        result=FV1.group(record);
        if (result.length()>0){
            return result;
        }

        result=FV2.group(record);
        if (result.length()>0){
            return result;
        }

        result=FV3.group(record);
        if (result.length()>0){
            return result;
        }

        result=FW1.group(record);
        if (result.length()>0){
            return result;
        }

        result=FW2.group(record);
        if (result.length()>0){
            return result;
        }

        result=FZ1.group(record);
        if (result.length()>0){
            return result;
        }

        Base.groupMessages.putMessage(record.Index,"不符合MDCF的ADRG入组条件");
        return "";
    }
}

